package zdream.pmfield.stage.message;

import java.util.Objects;

import zdream.pmfield.stage.object.FoeActor;
import zdream.pmfield.stage.object.Seat;

/**
 * @author Zdream
 * @date 2023-11-30
 * @since 0.0.1
 */
public class FoeArriveMessage extends StageMessage {
	public final FoeActor foe;
	public final Seat seat;

	public FoeArriveMessage(FoeActor foe, Seat seat) {
		this.type = StageMessageType.REPORT;
		this.foe = Objects.requireNonNull(foe);
		this.seat = Objects.requireNonNull(seat);
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder(64);
		builder.append("[FA]").append(' ');
		foe.appendStringWithoutHp(builder);

		builder.append(' ').append("到达了位置").append(' ');
		seat.appendStringWithoutFoe(builder);
		return builder.toString();
	}
}
